#ifndef WIFIDEVICE_H
#define WIFIDEVICE_H

#include <netinet/in.h>
#include <string>

#include "thread.h"

using namespace std;

class wifiDevice : public Thread
{
	int *ppMap;
	int listen_sockfd;
	int commit_sockfd;
	struct sockaddr_in local_addr;
	int listenUDPPort;
	Thread *readThread;
	
public:
	//wifiDevice(int *ppMap);
	wifiDevice();
	~wifiDevice();
	int sendMessage(string remoteAddress, char *buff, int buffSize);
	void run();
	void startDevice();
};

#endif //WIFIDEVICE_H
